package com.soul.admin.controller;

import com.soul.admin.service.AnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
@RestController
@RequestMapping("/dashboard")
public class DashboardController {

    @Autowired
    private AnalysisService analysisService;

    /**
     *  概要统计信息
     * @return AnalysisSummaryVo
     */
    @GetMapping("/summary")
    public ResponseEntity summary(){
        return ResponseEntity.ok(analysisService.summary());
    }
}
